﻿//***************************************************
//
//       File Name:    AudioManager.cs
//
//       Author:   王文军    Email:  546527816@qq.com
//
//
//***************************************************

using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using XHFrameWork;

public class AudioManager : MonoBehaviour {
    


    

    private AudioSource audioSource;

    private AudioClip buttonAudio;
    private AudioClip effMoveAudio;
    private AudioClip newModleAudio;

    void Start()
    {
        audioSource = this.GetComponent<AudioSource>();
        buttonAudio = ResManager.Instance.Load("Sounds/Button1") as AudioClip;
        effMoveAudio = ResManager.Instance.Load("Sounds/Move") as AudioClip;
        newModleAudio = ResManager.Instance.Load("Sounds/Move1") as AudioClip;
    } 

    public void PlayButton()
    {
        audioSource.PlayOneShot(buttonAudio);
    }

    public void PlayEffMoveAudio()
    {
        audioSource.PlayOneShot(effMoveAudio);
    }

    public void PlayNewModleAudio()
    {
        audioSource.PlayOneShot(newModleAudio);
    }

   
}
